package com.hs.mysql.proxy.annotation;

import com.hs.mysql.proxy.enums.DynamicDataSourceEnum;

import java.lang.annotation.*;

/**
 * @ClassName: DataSourceSelector
 * @author: hs
 * @date: 2020/5/8 11:37
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface DataSourceSelector {

    DynamicDataSourceEnum value() default DynamicDataSourceEnum.MASTER;

    boolean clear() default true;
}
